<!DOCTYPE html>
<html lang="en">
<!--header-->
<include file="Public:header"/>
<!--header-->

<section id="main-content">
    <section class="wrapper">
        <!--<iframe href="" frameborder="0" height="100%" width="100%" name="wrapper"></iframe>-->
        <h3><i class="fa fa-angle-right"></i> 用户审核详细信息</h3>
        <h4 class="mb"><i class="fa"></i>
            <a onclick="history.go(-1)" class="external-event label label-success" style="margin-left: 40px; float: left;margin-top: 15px;">返回</a>
        </h4>
        <h4 style="float: right;margin-right: 20%;">
            <if condition="$list.shen eq 1">
                <span style="cursor: pointer" onclick="he({$list.id},2)" class="label label-success">审核通过</span>
                <span style="cursor: pointer" onclick="he({$list.id},3)" class="label label-info">审核不通过</span>
            </if>
            <if condition="$list.shen eq 2">
                <span style="cursor: pointer" onclick="he({$list.id},3)" class="label label-info">审核不通过</span>
                <span style="cursor: pointer" onclick="he({$list.id},1)" class="label label-default">审核中</span>
            </if>
            <if condition="$list.shen eq 3">
                <span style="cursor: pointer" onclick="he({$list.id},2)" class="label label-success">审核通过</span>
                <span style="cursor: pointer" onclick="he({$list.id},1)" class="label label-default">审核中</span>
            </if>
        </h4>
        <div class="row mt">
            <div class="col-md-12">
                <div class="content-panel">

                    <!--基本信息-->
                    <table class="table table-striped table-advance table-hover" style="margin-left: 10%;">
                        <div style="margin-bottom:20px;margin-left: 10%;color: #ff77b5;font-weight: bold;font-size: 16px;">基本信息</div>

                        <thead>
                        <tr>

                            <td>昵称：{$list.nick_name}</td>
                        </tr>
                        <tr>
                            <td>姓名：{$list.name}</td>
                        </tr>
                        <tr>
                            <td>电话：{$list.phone}</td>
                        </tr>
                        <!--<tr>
                            <td>身份证号：{$list.id_card}</td>
                        </tr>-->
                        <tr style="width: 500px;">
                            <td>
                                相册：
                                <div>
                                    <foreach name="list['img']" item="v">
                                        <a target="_blank" class="fancybox" href="{$v}" style="float: left">
                                            <img class="img-responsive" src="{$v}" style="width: 60px;height: 60px;border-radius: 50%">
                                        </a>
                                    </foreach>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>头像：
                                <a class="fancybox" target="_blank" href="{$list.avatar}">
                                    <img class="img-responsive" src="{$list.avatar}" style="width: 60px;height: 60px;border-radius: 50%">
                                </a>
                            </td>
                        </tr>
                        <tr>
                            <td>微信头像：
                                <a class="fancybox" target="_blank" href="{$list.headimgurl}">
                                    <img class="img-responsive" src="{$list.headimgurl}" style="width: 60px;height: 60px;border-radius: 50%">
                                </a>
                            </td>
                        </tr>
                        <tr>
                            <td>微信昵称：{$list.nickname}</td>
                        </tr>
                        <tr>
                            <td>出生年月日：
                                <if condition="$list.ages neq NULL">
                                    {$list.age}（{$list.ages}）
                                    <else/>
                                    暂无
                                </if>
                            </td>
                        </tr>
                        <tr>
                            <td>性别：
                                <if condition="$list.sex == 0">未知</if>
                                <if condition="$list.sex == 1">男</if>
                                <if condition="$list.sex == 2">女</if>
                            </td>
                        </tr>

                        <tr>
                            <td>现居住地址：{$list.address}</td>
                        </tr>

                        <tr>
                            <td>身高（单位：cm）：{$list.heights}</td>
                        </tr>

                       <!-- <tr>
                            <td>体重（单位：kg）：{$list.weights}</td>
                        </tr>-->

                        <tr>
                            <td>学历：{$list.education}</td>
                        </tr>

                        <tr>
                            <td>职业：{$list.jobs}</td>
                        </tr>

                        <tr>
                            <td>购房情况：
                                <if condition="$list.home == 1">全款购房</if>
                                <if condition="$list.home == 2">按揭购房</if>
                                <if condition="$list.home == 3">准备购房</if>
                                <if condition="$list.home == 4">暂无购房计划</if>
                                <if condition="$list.home == 5">其他</if>
                            </td>
                        </tr>
                        <tr> <td>购车情况：<if condition="$list.car == 1">全款购车</if>
                            <if condition="$list.car == 2">按揭购车</if>
                            <if condition="$list.car == 3">准备购车</if>
                            <if condition="$list.car == 4">暂无购车计划</if>
                            <if condition="$list.car == 5">其他</if></td></tr>

                        <tr><td>婚姻状况：<if condition="$list.marriage == 1">未婚</if>
                            <if condition="$list.marriage == 2">离异</if>
                            <if condition="$list.marriage == 3">丧偶</if></td></tr>

                        <tr><td>有无小孩：<if condition="$list.child == 1">无小孩</if>
                            <if condition="$list.child == 2">有小孩</if></td></tr>

                        <tr><td>月收入（单位：元）：{$list.moneys}</td></tr>

                        <tr><td>户籍地：{$list.place}</td></tr>

                        <tr><td>是否抽烟：<if condition="$list.smoking == 1">不抽烟</if>
                            <if condition="$list.smoking == 2">抽烟</if></td></tr>

                        <tr><td>是否喝酒：<if condition="$list.drinking == 1">不喝酒</if>
                            <if condition="$list.drinking == 2">喝酒</if></td></tr>

                        <tr><td>何时结婚： <if condition="$list.marry_date == 1">认同闪婚</if>
                            <if condition="$list.marry_date == 2">一年内</if>
                            <if condition="$list.marry_date == 3">两年内</if>
                            <if condition="$list.marry_date == 4">三年内</if>
                            <if condition="$list.marry_date == 5">时机成熟就结婚</if></td></tr>
                        <tr><td>兴趣/爱好：{$list.xingqu}</td></tr>
                        <tr><td>性格：{$list.xingge}</td></tr>
                        <tr><td></td></tr>
                        </thead>
                    </table>

                    <!--择偶条件-->
                    <table class="table table-striped table-advance table-hover" style="margin-left: 10%;">
                        <div style="margin-top:60px;margin-bottom:20px;margin-left: 10%;color: #ff77b5;font-weight: bold;font-size: 16px;">择偶条件</div>
                        <thead>
                        <tr><td>月收入（单位：元）：{$list.ze_moneys}</td></tr>

                        <tr><td>婚姻状况：<if condition="$list.ze_marriage == 1">未婚</if>
                            <if condition="$list.ze_marriage == 2">不介意离异</if>
                            <if condition="$list.ze_marriage == 3">不介意丧偶</if></td></tr>

                        <tr><td>现居住地址：{$list.ze_address}</td></tr>

                        <tr><td>身高（单位：cm）：{$list.ze_heights}</td></tr>

                        <!--<tr><td>体重（单位：kg）：{$list.ze_weights}</td></tr>-->

                        <tr><td>学历：{$list.ze_education}</td></tr>

                        <tr><td>购车情况：<if condition="$list.ze_car == 1">全款购车</if>
                            <if condition="$list.ze_car == 2">按揭购车</if>
                            <if condition="$list.ze_car == 3">准备购车</if>
                            <if condition="$list.ze_car == 4">暂无购车计划</if>
                            <if condition="$list.ze_car == 5">其他</if></td></tr>

                        <tr><td>购房情况：<if condition="$list.ze_home == 1">全款购房</if>
                            <if condition="$list.ze_home == 2">按揭购房</if>
                            <if condition="$list.ze_home == 3">准备购房</if>
                            <if condition="$list.ze_home == 4">暂无购房计划</if>
                            <if condition="$list.ze_home == 5">其他</if></td></tr>
                        </tr>
                        <tr><td>是否有小孩：<if condition="$list.ze_child == 1">无小孩</if>
                            <if condition="$list.ze_child == 2">不介意有小孩</if></td></tr>

                        <tr> <td>抽烟情况：<if condition="$list.ze_smoking == 1">不抽烟</if>
                            <if condition="$list.ze_smoking == 2">不介意抽烟</if></td></tr>

                        <tr><td>喝酒情况：<if condition="$list.ze_drinking == 1">不喝酒</if>
                            <if condition="$list.ze_drinking == 2">不介意喝酒</if></td></tr>

                        <tr><td>喜欢类型：{$list.xuanyan}</td></tr>

                        <tr><td>情感宣言：{$list.leixing}</td></tr>
                        <tr><td></td></tr>
                        </thead>
                    </table>

                    <!--QQ/微信-->
                    <table class="table table-striped table-advance table-hover" style="margin-left: 10%;">
                        <div style="margin-top:60px;margin-bottom:20px;margin-left: 10%;color: #ff77b5;font-weight: bold;font-size: 16px;">QQ/微信</div>
                        <thead>
                        <tr><td>微信号：{$list.wechat}</td></tr>
                        <tr><td>QQ：{$list.qq}</td></tr>
                        </thead>
                    </table>

                    <!--性格标签-->
                    <table class="table table-striped table-advance table-hover" style="margin-left: 10%;">
                        <div style="margin-top:60px;margin-bottom:20px;margin-left: 10%;color: #ff77b5;font-weight: bold;font-size: 16px;">性格标签</div>
                        <thead>
                        <tr>
                            <td>性格标签:{$list.tags}</td>
                        </tr>
                        </thead>
                    </table>

                    <!--休假情况-->
                    <table class="table table-striped table-advance table-hover" style="margin-left: 10%;">
                        <div style="margin-bottom:20px;margin-left: 10%;color: #ff77b5;font-weight: bold;font-size: 16px;">休假情况</div>
                        <thead>
                        <tr>
                            <td>休假情况：{$list.vacation}</td>
                        </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </section>
</section>

</section>
<!--footer-->
<include file="Public:footer"/>
<!--footer-->
</body>
<script type="text/javascript" src="__PUBLIC__/ui/lib/layer/2.4/layer.js"></script>
<script type="text/javascript">
    function he(id,type) {
        var currpage = "{$currpage}";
        if(type==1){
            layer.confirm('确认要“审核中”该用户吗？', {
                title: '审核提示：',
                btn: ['确定'] //可以无限个按钮
            }, function(index, layero){
                $.ajax({
                    type:"post",
                    data:{id:id,type:type,st:1},
                    url:"{:U('he')}",
                    success:function (res) {
                        if(res == 1){
                            layer.open({
                                title: '',
                                content: "审核成功",
                            });
                            if(currpage == 1){
                                location.href="__APP__/Dashboard/He/info";
                            }else{
                                location.href="__APP__/Dashboard/He/info/currpage/"+currpage;
                            }
                        }
                        if(res == 2){
                            layer.open({
                                title: ''
                                ,content: "删除失败"
                            });
                            _pass = false;
                        }
                    }
                })
            });
        }
        if(type==2){
            layer.confirm('确认要审核“通过”该用户吗？', {
                title: '审核提示：',
                btn: ['确定'] //可以无限个按钮
            }, function(index, layero){
                $.ajax({
                    type:"post",
                    data:{id:id,type:type,st:1},
                    url:"{:U('he')}",
                    success:function (res) {
                        if(res == 1){
                            layer.open({
                                title: '',
                                content: "审核成功",
                            });
                            if(currpage == 1){
                                location.href="__APP__/Dashboard/He/info";
                            }else{
                                location.href="__APP__/Dashboard/He/info/currpage/"+currpage;
                            }
                        }
                        if(res == 2){
                            layer.open({
                                title: ''
                                ,content: "审核失败"
                            });
                            _pass = false;
                        }
                    }
                })
            });
        }
        if(type==3){
            layer.confirm('确认要审核”不通过”该用户吗？', {
                title: '审核提示：',
                btn: ['确定'] //可以无限个按钮
            }, function(index, layero){
                $.ajax({
                    type:"post",
                    data:{id:id,type:type,st:1},
                    url:"{:U('he')}",
                    success:function (res) {
                        if(res == 1){
                            layer.open({
                                title: '',
                                content: "审核成功",
                            });
                            if(currpage == 1){
                                location.href="__APP__/Dashboard/He/info";
                            }else{
                                location.href="__APP__/Dashboard/He/info/currpage/"+currpage;
                            }
                        }
                        if(res == 2){
                            layer.open({
                                title: ''
                                ,content: "审核失败"
                            });
                            _pass = false;
                        }
                    }
                })
            });
        }
    }
</script>
</html>
